package com.awardsystem.Dao;

import com.awardsystem.entity.Achievement;
import com.awardsystem.entity.Patent;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface PatentDao extends JpaRepository<Patent,Integer> {
    List<Patent> findPatentsByNameContains(String name);
    Patent findPatentsByNameEquals(String name);
    Patent findPatentById(Integer id);
    List<Patent> findPatentsByAchievementsEquals(Achievement achievement);
}
